<%
		//ac accessControl
		String ac = (String)request.getAttribute("personType");
		//System.out.println("[DEBUG] Access Control >> " + ac);
 %>
<!-- try checkin -->
<script type="text/javascript">
		showDetails = function(elem) {
				var imgElem = elem;
				imgElem.setAttribute('src', 'images/icon-tree-close.gif');
				var children = imgElem.parentNode.getElementsByTagName('ul')[0];
				if(children.style.display == '') {
						children.style.display = 'none';
						imgElem.setAttribute('src', 'images/icon-tree-close.gif');
				}
				else {
						children.style.display = '';
						imgElem.setAttribute('src', 'images/icon-tree-open.gif');
				}
		}
</script>

<%
		String imgSrc = "images/icon-tree-close.gif";
 %>

<div id="left-nav-middle" style="overflow-y: auto; overflow-x: hidden;">
	<div class="navtree">
		<span class="title">
			<span class="foldable" rel='labreport_c'>基本功能</span>
		</span>
		
		<div id="labreport_c" class="foldable_content">
			<div class="lvl1_node">
				<div><a href="javascript:;" onclick="actionPage('la_contract_management.jsp')">合同管理</a></div>
				<div><a href="javascript:;" onclick="actionPage('la_task_management.jsp')">企业管理</a></div>
				<div><a href="javascript:;" onclick="actionPage('la_employee_management.jsp')">员工管理</a></div>
			</div>
		</div>
	</div>
	
	<div class="navtree">
		<span class="title">
			<span class="foldable"  rel='finance_c'>高级功能</span>
		</span>
		<div id="finance_c" class="foldable_content">
			<div class="lvl1_node">
				<%
						if(LocalContants.PERSON_TYPE_S.equalsIgnoreCase(ac) || LocalContants.PERSON_TYPE_M.equalsIgnoreCase(ac)) {
				%>
				<!-- 用户管理 -->
				<div>
						<!-- the icon is no need for these functions 
						<img title="Double click the row to open or close the detail information" src="<%=imgSrc%>"
								onclick="showDetails(this);"
								style="cursor: pointer;" />
						-->
						<div><a href="javascript:;" onclick="actionPage('la_person_list.jsp')">用户管理</a></div>
						<div><a href="javascript:;" onclick="actionPage('la_role_assign.jsp')">权限管理</a></div>
						<ul style="display:none">
								<!-- 
								<li><a href="javascript:;" onclick="actionPage('la_role_create.jsp')">创建权限</a></li>
								<li><a href="javascript:;" onclick="actionPage('la_role_assign.jsp')">权限分配</a></li>
								 -->
						</ul>
				</div>
				<%		}	 %>
			</div>
		</div>
	</div>

	<div class="navtree">
		<span class="title">
			<span class="foldable"  rel='search_c'>搜索功能</span>
		</span>
		<div id="search_c" class="foldable_content">
			<div class="lvl1_node">
				<div>
						<div><a href="javascript:;" onclick="actionPage('search.jsp')">搜索管理</a></div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="navtree">
		<span class="title">
			<span class="foldable"  rel='appraise_c'>考核功能</span>
		</span>
		<div id="appraise_c" class="foldable_content">
			<div class="lvl1_node">
				<div>
						<div><a href="javascript:;" onclick="actionPage('appraise.jsp')">业绩管理</a></div>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
		actionPage = function(dest) {
				var url = dest;
				var myAjax = new Ajax.Updater('right',url,{method:'get',evalScripts: true});
		}
</script>	

<%@ page import="com.esms.struts.service.*" %>
<%@ page contentType="text/html;charset=utf-8" %>